﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dyao.Book.Core
{
    public class CommonExceptionCode
    {
        #region TaskCenter

        /// <summary>
        /// 任务中心-记录不存在
        /// </summary>
        public const string TaskCenterRecordNotFound = "TaskCenter_Notfound";

        /// <summary>
        /// 任务中心，创建记录：任务配置不存在
        /// </summary>
        public const string TaskCenterCreateRecordTaskSettingNotFound = "TaskCenter_CreateRecord_01";

        /// <summary>
        /// 任务中心，验证：状态不相等
        /// </summary>
        public const string TaskCenterValidateStatusNotEqual = "TaskCenter_Validate_01";

        /// <summary>
        /// 任务中心，验证：重试次数不相等
        /// </summary>
        public const string TaskCenterValidateRetryCountNotEqual = "TaskCenter_Validate_02";

        /// <summary>
        /// 任务中心，验证：执行信息是否是默认值
        /// </summary>
        public const string TaskCenterValidateExcutingInfoIsDefault = "TaskCenter_Validate_03";

        /// <summary>
        /// 任务中心，验证：执行信息是否null
        /// </summary>
        public const string TaskCenterValidateExcutingInfoIsNull = "TaskCenter_Validate_04";

        /// <summary>
        /// 任务中心，验证：记录不存在
        /// </summary>
        public const string TaskCenterValidateRecordNotFound = "TaskCenter_Validate_05";

        /// <summary>
        /// 任务中心，删除记录：验证含有参数
        /// </summary>
        public const string TaskCenterDeleteRecordValidateContainParam = "TaskCenter_DeleteRecord_01";

        /// <summary>
        /// 任务中心，删除记录：验证状态是否是执行中
        /// </summary>
        public const string TaskCenterDeleteRecordValidateStatusExcuting = "TaskCenter_DeleteRecord_02";

        /// <summary>
        /// 任务中心，执行规则：不存在
        /// </summary>
        public const string TaskCenterRuleExcutorNotFound = "TaskCenter_RuleExcutor_01";

        /// <summary>
        /// 任务中心，规则配置：不存在
        /// </summary>
        public const string TaskCenterRuleSettingNotFound = "TaskCenter_RuleSetting_01";

        /// <summary>
        /// 任务中心，用户操作规则：频繁
        /// </summary>
        public const string TaskCenterUserOperateRuleOften = "TaskCenter_UserOperateRule_01";

        /// <summary>
        /// 任务中心单体任务执行上下文，总页数未设置
        /// </summary>
        public const string TaskCenterSingleContextPageCountNotSet = "TaskCenterSingleContext_01";

        /// <summary>
        /// 任务中心单体任务执行上下文,分页任务占比范围错误
        /// </summary>
        public const string TaskCenterSingleContextPagingProgressProportionRangeError = "TaskCenterSingleContext_02";

        #endregion //end TaskCenter

        #region 导出中心

        /// <summary>
        /// 导出中心找不到对应动作
        /// </summary>
        public const string ExportCenterActionNotFound = "ExportCenter_Validate_01";

        /// <summary>
        /// 导出中心无相应的权限
        /// </summary>
        public const string ExportCenterPermissionCodeNotFound = "ExportCenter_Validate_02";

        /// <summary>
        /// 导出中心无相应的Command命令
        /// </summary>
        public const string ExportCenterCommandNotFound = "ExportCenter_Validate_03";

        /// <summary>
        /// 导出中心删除失败
        /// </summary>
        public const string ExportCenterDeleteFail = "ExportCenter_Delete_01";

        /// <summary>
        /// 导出中心查询不到数据
        /// </summary>
        public const string ExportCenterDataNotFound = "ExportCenter_Validate_04";

        /// <summary>
        /// 导出中心重试失败
        /// </summary>
        public const string ExportCenterRetryFail = "ExportCenter_Retry_01";

        /// <summary>
        /// 导出中心重试参数为空
        /// </summary>
        public const string ExportCenterRetryParamsIsNull = "ExportCenter_Retry_02";

        /// <summary>
        /// 导出中心获取进度参数为空
        /// </summary>
        public const string ExportCenterGetProccessesParamsIsNull = "ExportCenter_GetProccesses_01";

        /// <summary>
        /// 导出中心自动删除失败
        /// </summary>
        public const string ExportCenterAutoDeleteFail = "ExportCenter_AutoDelete_01";

        /// <summary>
        /// 导出中心Command参数错误失败
        /// </summary>
        public const string ExportCenterSendBusCommandParamsError = "ExportCenter_SendBusCommand_01";

        /// <summary>
        /// 导出执行器，导出文件未生成
        /// </summary>
        public const string ExportExcutorExcutedFileNotCreate = " ExportExcutor_Excute_01";
        #endregion

        #region UserAccessor

        /// <summary>
        /// 用户名为空
        /// </summary>
        public const string UserAccessorSetUserUserNameIsNullOrEmpty = "UserAccessor_SetUser_01";

        #endregion //end userAccessor
    }
}
